package cn.com.lsy.product.lepao.service;

import cn.com.lsy.product.lepao.model.entities.LpAdminTbl;
import cn.com.lsy.product.lepao.model.entities.LpMenuTbl;
import cn.com.lsy.product.lepao.model.entities.LpParentMenuTbl;
import cn.com.lsy.product.lepao.model.entities.LpRoleTbl;
import cn.com.lsy.product.lepao.model.mt.entities.AdminUserListDto;
import cn.com.lsy.product.lepao.model.mt.entities.AuthMenuDto;

import java.util.List;

public interface IRoleService {

    List<LpRoleTbl> selectRoleList();

    boolean insertRole(LpRoleTbl param);

    boolean updateRole(LpRoleTbl param);

    boolean delRole(int id);

    LpRoleTbl selectRoleInfo(int id);

    LpMenuTbl selectMenuInfo(int id);

    List<AdminUserListDto> selectAdminListByPage(int start, int end, String searchCondition);

    int selectAdminListByCount(String searchCondition);

    boolean updateAdmin(LpAdminTbl param);

    boolean addAdmin(LpAdminTbl param);

    List<LpMenuTbl> selectMenuList();

    boolean updateMenu(LpMenuTbl param);

    boolean addMenu(LpMenuTbl param);

    boolean delMenu(int id);

    List<LpParentMenuTbl> selectParentMenuList();

    LpParentMenuTbl selectParentMenuById(int id);

    boolean updateParentMenu(LpParentMenuTbl param);

    boolean insertParentMenu(LpParentMenuTbl param);

    boolean delParentMenuById(int id);

    List<AuthMenuDto> selectUserAuthMenuList(List<Integer> menuId);
}
